import { RouteRecordRaw } from "vue-router";

// 帐号管理模块
const tableRouter: Array<RouteRecordRaw> = [
  {
    path: "/cpy",
    component: () => import("@/layouts/index.vue"),
    redirect: "/cpy/info",
    meta: {
      icon: "MessageBox",
      title: "企业管理"
    },
    children: [
      {
        path: "/cpy/info",
        name: "cpyInfo",
        component: () => import("@/views/cpy/info/index.vue"),
        meta: {
          icon: "menu",
          title: "基本信息",
          keepAlive: true,
          requiresAuth: true,
          key: "cpyInfo"
        },
        children: []
      },
      {
        path: "/cpy/act",
        name: "cpyAct",
        component: () => import("@/views/cpy/act/index.vue"),
        meta: {
          icon: "menu",
          title: "帐号管理",
          keepAlive: true,
          requiresAuth: true,
          key: "cpyAct"
        },
        children: []
      },
      {
        path: "/cpy/client",
        name: "cpyClient",
        component: () => import("@/views/cpy/client/index.vue"),
        meta: {
          icon: "menu",
          title: "客户公司",
          keepAlive: true,
          requiresAuth: true,
          key: "cpyClient"
        },
        children: []
      },
      {
        path: "/cpy/tongji",
        name: "cpyTongji",
        component: () => import("@/views/cpy/tongji/index.vue"),
        meta: {
          icon: "menu",
          title: "帐号统计",
          keepAlive: true,
          requiresAuth: true,
          key: "cpyTongji"
        },
        children: []
      },
      {
        path: "/cpy/billing",
        name: "cpyBilling",
        component: () => import("@/views/cpy/billing/index.vue"),
        meta: {
          icon: "menu",
          title: "开票管理",
          keepAlive: true,
          requiresAuth: true,
          key: "cpyBilling"
        },
        children: []
      }
    ]
  }
];
export default tableRouter;
